//
//  XSJZZAppDelegate.m
//  WangYe
//
//  Created by 阳光 on 2017/2/7.
//  Copyright © 2017年 YG. All rights reserved.
//

#import "XSJZZAppDelegate.h"
#import "XSJZZYGTabBarController.h"

@interface XSJZZAppDelegate ()

@end

@implementation XSJZZAppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    self.window.rootViewController = [[XSJZZYGTabBarController alloc] init];
    [self.window makeKeyAndVisible];
   
    return YES;
}



- (void)applicationWillTerminate:(UIApplication *)application {
    // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
    
    YYImageCache *cache = [YYWebImageManager sharedManager].cache;
    
    // 清空缓存
    [cache.memoryCache removeAllObjects];
    [cache.diskCache removeAllObjects];
}


@end
